package etnorservice.etnor_service.config;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/10/14/20:55
 **/
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        // 配置静态资源路径
        registry.addResourceHandler("/resources/docImgs/**")
                .addResourceLocations("file:D:\\桌面\\中链融\\E特诺\\etnor_admin\\etnor_service\\src\\main\\resources\\docImgs\\");
    }
}

